package com.sporadic.client.service.impl;

import com.sporadic.client.mapper.DishesMapper;
import com.sporadic.client.pojo.Dishes;
import com.sporadic.client.service.DishesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DishesServiceImpl implements DishesService {

    @Autowired
    private DishesMapper dishesMapper;

    @Override
    public List<Dishes> selDishesAll(Integer dishesMerchant) {
        return this.dishesMapper.selDishesAll(dishesMerchant);
    }

    @Override
    public List<Dishes> selDishesTypeIdAll(Integer dishesType) {
        return this.dishesMapper.selDishesTypeIdAll(dishesType);
    }

    @Override
    public List<Dishes> selDishesLikeNameAll(String dishesName) {
        return this.dishesMapper.selDishesLikeNameAll(dishesName);
    }

    @Override
    public List<Dishes> selDishesTypeDtNameAll(Integer dishesMerchant) {
        return this.dishesMapper.selDishesTypeDtNameAll(dishesMerchant);
    }

}
